<include file="../Public/header" />
<!----------------------------------------------------------------------------------->
<style>
    .articlesort{ font-size: 12px}
    .articlesort a:hover{ text-decoration: underline}
    .articlesort .order{ width: 60px; text-align: center}
    .articlesort .id{ width: 60px; text-align: center}
    .articlesort .name{ width: 200px}
    .articlesort .status{ text-align: center; width: 100px}
    .articlesort .value .status{ color: #ccc}
    .articlesort .admin{ text-align: center; width: 150px}
</style>
<form method="post" action="admin.php?m=articlesort&a=order">
    <table class="articlesort">
        <tr class="title">
            <td class="order">排序</td>
            <td class="id">id</td>
            <td class="name">栏目名</td>
            <td class="place">栏目类型</td>
            <td class="status">栏目状态</td>
            <td class="admin">栏目管理</td>
        </tr>
        <foreach name="articlesort" item="vo">
        <tr class="value">
            <td class="order"><input type="text" size="1" name="order[{$vo.article_sort_id}]" value="{$vo.article_sort_ordering}" /></td>
            <td class="id">{$vo.article_sort_id}</td>
            <td class="name"><a href=""><for start="1" end="$vo.level">&nbsp;&nbsp;</for>|-{$vo.article_sort_name}</a></td>
            <td class="place"><if condition="$vo.place eq 1">单页<elseif condition="$vo.place==0"/>栏目</if></td>
        <td class="status"><if condition="$vo.article_sort_status eq 1">开启|<a href="admin.php?m=articlesort&a=place&sid={$vo.article_sort_id}&status=0">关闭</a><elseif condition="$article_sort_status eq 0" />关闭|<a href="admin.php?m=articlesort&a=place&sid={$vo.article_sort_id}&status=1">开启</a></if></td>
            <td class="admin"><a href="{:U('insert',array('id'=>$vo['article_sort_id']))}">添加子栏目</a>|<a href="{:U('update',array('id'=>$vo['article_sort_id']))}">配置栏目</a>|<a href="{:U('del',array('id'=>$vo['article_sort_id']))}" onclick="return confirm('删除后将无法恢复，确认删除？')">删除</a></td>
        </tr>
        </foreach>
    </table>
    <input type="submit" value="修改排序" />
</form>
                        
			 
			 
<!-----------------------------------------------------------------------------------> 
<include file="../Public/footer" />